import instance from "@/utils/reqest";

// get请求用params  post请求用data delete请求和get类似  put请求和post类似

// 登录接口
export let loginFun = (data:any) =>{
    return instance({
        // https://v4.fenxi365.com/api/login
        url:'login',
        method:'post',
        data
    })
}

// 登出
export let OutLoginFun =()=>{
    return instance({
        // https://v4.fenxi365.com/api/logout
        url:"/logout",
        method:'get',
    })
}
